-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Output JSON code sample from Docs API #46
base: master
Are you sure you want to change the base?
Conversation
// Listen for sign-in state changes. | ||
gapi.auth2.getAuthInstance().isSignedIn.listen(updateSigninStatus); | ||
|
||
// Handle the initial sign-in state. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indent is wrong.
*/ | ||
function initClient() { | ||
gapi.client.init({ | ||
apiKey: API_KEY, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indent is wrong.
*/ | ||
function updateSigninStatus(isSignedIn) { | ||
if (isSignedIn) { | ||
authorizeButton.style.display = 'none'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More indent issues.
*/ | ||
function printDocBody() { | ||
gapi.client.docs.documents.get({ | ||
documentId: 'DOCUMENT_ID' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
Also fix lint errors. |
Delete ssh please |
Please see: https://devsite.googleplex.com/docs/api/samples/output-json